<?php
ini_set('include_path','.');

include_once (dirname(__FILE__)."/../php/uapi/Environment.php");
include_once (dirname(__FILE__)."/../php/uapi/io/File.php");


rootVerzeichnisAuslesen ();
wertEinerUmgebungsvariablen ();
namenAllerUmgebungsvariablen ();
exit ();


function wertEinerUmgebungsvariablen () {
  $env;
  $env = new Environment ();
  print ($env->getValue ("temp") . "\n\r");
  $env = undef;
}

function namenAllerUmgebungsvariablen () {
  $env;
  $names;
  $env = new Environment ();
  $names = $env->getNames();
  foreach ($names as $name) {
    print ("$name\n\r");
  }
  $env = undef;
}

function rootVerzeichnisAuslesen () {
  $root;
  $file;
  $root = new uFile ("\\");
  $files =$root->listFiles();
  foreach ($files as $ufile) {
    print ($ufile->__toString(). "\n\r");
  }
  $root = NULL;
}
?>